-- GENERATED SPELL FOR [Sunhawk Pyromancer] --


function spell0_17608(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(9053,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17608', 3000, 1)
end

function spell1_17608(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(11962,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17608', 17000, 1)
end

function spell2_17608(pUnit, Event) --@Mark of the Sunhawk,n/a--
pUnit:FullCastSpellOnTarget(31734,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17608', 20346, 1)
end

function Sorts_17608(pUnit, Event)
local choix_sorts_17608 = math.random(0, 2)
if choix_sorts_17608 == 0 then
pUnit:RegisterEvent('spell0_17608', 1, 1)
end
if choix_sorts_17608 == 1 then
pUnit:RegisterEvent('spell1_17608', 1, 1)
end
if choix_sorts_17608 == 2 then
pUnit:RegisterEvent('spell2_17608', 1, 1)
end
end

function mob17608_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17608', math.random(1500, 3000), 1)
end

function mob17608_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17608_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17608_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17608, 1, 'mob17608_Action')
RegisterUnitEvent(17608, 2, 'mob17608_Leave')
RegisterUnitEvent(17608, 3, 'mob17608_Kill')
RegisterUnitEvent(17608, 4, 'mob17608_Die')
